
package com.eyedog.video.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.eyedog.video.db2.entities.BaseEntity;

public class ADVEntity extends BaseEntity implements Parcelable {

    public String id;

    public String img;

    public String url;

    public String content;

    public ADVEntity() {
    }

    public ADVEntity(String id, String img, String url, String advDesc) {
        this.id = id;
        this.img = img;
        this.url = url;
        this.content = advDesc;
    }

    protected ADVEntity(Parcel in) {
        id = in.readString();
        url = in.readString();
        img = in.readString();
        content = in.readString();
    }

    public static final Creator<ADVEntity> CREATOR = new Creator<ADVEntity>() {
        @Override
        public ADVEntity createFromParcel(Parcel in) {
            return new ADVEntity(in);
        }

        @Override
        public ADVEntity[] newArray(int size) {
            return new ADVEntity[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(id);
        parcel.writeString(url);
        parcel.writeString(img);
        parcel.writeString(content);
    }
}
